public class Test {
    public static void main(String[] args) {
//        1到5的累加  1+ 1+2 + 1+2+3 +...5
        int j = 1;
        int sum = 0;
        while (j <= 5){
            int i = 0;
            int ret = 0;

            while (i <= j){
                ret += i;
                i++;
            }
            j++;
            sum += ret;
        }
        System.out.println(sum);

    }
}
